//
//  HLSquareCell.m
//  YueYue
//
//  Created by hulu001 on 2023/5/18.
//

#import "HLSquareCell.h"
#import "HLSquareView.h"


@interface HLSquareCell ()

@property (nonatomic, strong)HLSquareView *squareView;

@end

@implementation HLSquareCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {

        [self setupView];
    }
    return self;
}

- (void)setupView {
    self.backgroundColor = UIColorClear;
    self.squareView = [[HLSquareView alloc] init];
    [self.contentView addSubview:_squareView];
    [_squareView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
}

- (void)setModel:(HLSquareModel *)model
{
    _model = model;
    _squareView.model = model;
    
}

@end
